using System;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
namespace RiceShop.Models
{
    public class WeChatLoginRequest
    {
        [Required]
        public string Code { get; set; } = string.Empty;
    }

    public class WeChatAccessToken
    {
        [Required]
        public string access_token { get; set; } = string.Empty;
        
        [Required]
        public string openid { get; set; } = string.Empty;
        
        [Required]
        public string refresh_token { get; set; } = string.Empty;
        
        public int expires_in { get; set; }
        
        [Required]
        public string scope { get; set; } = string.Empty;
    }
} 